package com.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.api.dao.UserRolesDao;
import com.api.entity.UserRoles;
import com.api.service.UserRolesService;
@Service
public class UserRolesServiceImpl implements UserRolesService{

	@Autowired
	private UserRolesDao userRolesDao;
	public int addUsersRoles(UserRoles urs) {
		return userRolesDao.addUsersRoles(urs);
	}
	public int deleteUsersRoles(UserRoles urs) {
		return userRolesDao.deleteUsersRoles(urs);
	}
	public int deleteAllUsersRolesByid(String id) {
		// TODO Auto-generated method stub
		return userRolesDao.deleteAllUsersRolesByid(id);
	}
	public int deleteAllUsersRolesByrid(String id) {
		// TODO Auto-generated method stub
		return userRolesDao.deleteAllUsersRolesByrid(id);
	}

}
